mkdir obj
mkdir bin

nasm bootloader.asm -f bin -o bin/bootloader.bin

nasm kernelloader.asm -f bin -o bin/kernelloader.bin

as -o obj/loader.o loader.s

i586-elf-gcc -o obj/kernel.o -c kernel.c -Wall -Wextra -Werror -nostdlib -fno-builtin -nostartfiles -nodefaultlibs

i586-elf-ld -T linker.ld -o bin/kernel.bin obj/loader.o obj/kernel.o
